<div class="crumb-wrap">
    <div class="crumb-list"><i class="icon-font"></i><a href="<?=site_url()?>">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">系统设置</span></div>
</div>
<div class="result-wrap">
    <form action="<?=site_url('setup/update')?>" method="post" id="myform" name="myform">
        <div class="config-items">
            <div class="config-title">
                <h1><i class="icon-font">&#xe00a;</i>网站信息设置</h1>
            </div>
            <div class="result-content">
                <table width="100%" class="insert-tab">
                    <tbody><tr>
                        <th width="15%"><i class="require-red">*</i>域名：</th>
                        <td><input type="text" id="" value="<?=$sys->url?>" size="85" name="url" class="common-text"></td>
                    </tr>
                        <tr>
                            <th><i class="require-red">*</i>站点标题：</th>
                            <td><input type="text" id="" value="<?=$sys->title?>" size="85" name="title" class="common-text"></td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>关键字：</th>
                            <td>
                                <input type="text" id="" value="<?=$sys->keywords?>" size="85" name="keywords" class="common-text">
                                <span>
                                    多个关键字使用“,”隔开
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>描述：</th>
                            <td>
                            <input type="text" id="" value="<?=$sys->description?>" size="85" name="description" class="common-text">
                            <span>
                                    不能超过255个字符
                            </span>
                            </td>
                        </tr>

                        <tr>
                            <th><i class="require-red">*</i>维护邮箱：</th>
                            <td>
                            <input type="text" id="" value="<?=$sys->email?>" size="85" name="email" class="common-text">
                            <span>
                                    必填
                            </span>
                            </td>
                        </tr>
                        <tr>
                            <th width="120"><i class="require-red">*</i>站点状态</th>
                            <td>
                                <select name="status" id="catid" class="required">
                                    <option value="1">开启</option>
                                    <option value="2" <?=$sys->status == 2 ? 'selected' : ''?>>关闭</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <input type="submit" value="提交" class="btn btn-primary btn6 mr10">
                                <input type="button" value="返回" onclick="history.go(-1)" class="btn btn6">
                            </td>
                        </tr>
                    </tbody></table>
            </div>
        </div>

        <!-- <div class="config-items">
            <div class="config-title">
                <h1><i class="icon-font">&#xe014;</i>站长信息设置</h1>
            </div>
            <div class="result-content">
                <table width="100%" class="insert-tab">
                    <tr>
                        <th width="15%"><i class="require-red">*</i>网站联系邮箱：</th>
                        <td><input type="text" id="" value="chencehng_7758@163.com" size="85" name="email" class="common-text"></td>
                    </tr>
                        <tr>
                            <th><i class="require-red">*</i>联系人：</th>
                            <td><input type="text" id="" value="有主机上线" size="85" name="contact" class="common-text"></td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>联系电话：</th>
                            <td><input type="text" id="" value="123456" size="85" name="phone" class="common-text"></td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>备案ICP：</th>
                            <td><input type="text" id="" value="哥在香港" size="85" name="icp" class="common-text"></td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>地址：</th>
                            <td><input type="text" id="" value="中国 • 北京" size="85" name="address" class="common-text"></td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <input type="hidden" value="siteConf.inc.php" name="file">
                                <input type="submit" value="提交" class="btn btn-primary btn6 mr10">
                                <input type="button" value="返回" onclick="history.go(-1)" class="btn btn6">
                            </td>
                        </tr>
                </table>
            </div>
        </div> -->
    </form>
</div>

<script type="text/javascript">
    
    $('#myform').submit(function() {
        $(this).ajaxSubmit(function(data){
            if(data == 1){
                layer.alert('操作成功！',{
                    icon:1,
                });
            }else{
                reset_cap();
                layer.alert(data,{
                    icon:2,
                });
            }
        })
        return false;
    })
</script>